FROM python:3.12
#作者
LABEL authors='chao'

# 设置工作目录
WORKDIR /app

# 复制项目的其余文件到工作目录下
COPY .. /app/

RUN pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/

RUN python manage.py makemigrations && python manage.py migrate




#监听的端口号是8000
EXPOSE 8000
ENTRYPOINT ["python3","manage.py","runserver","0.0.0.0:8000"]